add Release version as an optional field in the CSV#454
Conversation
9966937 to
e9857af
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #454 +/- ##
==========================================
+ Coverage 37.71% 37.78% +0.07%
==========================================
Files 56 57 +1
Lines 4516 4557 +41
==========================================
+ Hits 1703 1722 +19
- Misses 2661 2678 +17
- Partials 152 157 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
f8bf7e2 to
bddcea6
Compare
|
Respects the legacy ability to encode a release version implicitly in semver build metadata when adding a bundle-level Before: ./bin/opm render registry.redhat.io/amq7/amq-broker-rhel8-operator-bundle@sha256:ce274a661f64f3b872b69f2c5b6f6c93f841f456037f69b813ede777c944489b -o yaml | yq 'select(.schema == "olm.bundle").properties[]| select(.type == "olm.package")'type: olm.package
value:
packageName: amq-broker-rhel8
version: 7.10.2-opr-2+0.1676475747.pAfter: ./bin/opm render registry.redhat.io/amq7/amq-broker-rhel8-operator-bundle@sha256:ce274a661f64f3b872b69f2c5b6f6c93f841f456037f69b813ede777c944489b -o yaml | yq 'select(.schema == "olm.bundle").properties[]| select(.type == "olm.package")'type: olm.package
value:
packageName: amq-broker-rhel8
release: 0.1676475747.p
version: 7.10.2-opr-2 |
Signed-off-by: grokspawn <[email protected]> Assisted-by: claude
bddcea6 to
7db47d7
Compare
|
I'm clearing the WIP because I'm hoping to get some reviews/eyes here, but I'm putting on a hold because we want to control the sequence of merges for this and related PRs. /hold |
|
Want to note here that all the off- and on-cluster tooling in o-f and known derivatives is set to unmarshal with tolerance for unknown fields, so the use of this feature with old tooling will result in the field getting dropped/ignored, not a functional impact. |
|
/hold cancel opening the floodgates to reviewers ;) |
rashmigottipati
left a comment
There was a problem hiding this comment.
Not super clear behind the motivations for this PR, but changes look good overall.
One question I have is: currently I dont think this would reject invalid release strings. What do you think about adding validation to ensure semver correctness?
|
cc |
78e27ed to
663bbcc
Compare
663bbcc to
4f11d6e
Compare
4f11d6e to
4a61e98
Compare
|
/approve |
Signed-off-by: grokspawn <[email protected]>
4a61e98 to
9984aa0
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: joelanford, rashmigottipati The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
f65ea7e
into
operator-framework:master
As part of the epic, in order for bundle authors to be able to specify release information, it must be part of the CSV.
This PR proposes an optional additional
releasefield which expresses this information, enabling its use in the catalog creation / consumption flows both on- and off-cluster.Now with a bonus bundle manifest validator to enforce the release version bundle naming convention, which is used by the operator-verify tool.